#region Copyright
/// <copyright>
/// Copyright (c) 2007 Ilia Shramko.
/// Released under the terms of the GNU General Public License.
/// </copyright>
#endregion

using System;
using System.Collections.Generic;
using System.Text;

namespace Osh.Subtitles
{
	public class SubtitlesEventArgs : EventArgs
	{
		private string _subtitlesHtml;
		private TimeSpan _duration;

		public SubtitlesEventArgs(string subtitlesHtml, TimeSpan duration)
		{
			_subtitlesHtml = subtitlesHtml;
			_duration = duration;
		}

		public string SubtitlesHtml
		{
			get { return _subtitlesHtml; }
		}
		
		public TimeSpan Duration
		{
			get { return _duration; }
		}

		public int DurationMilliseconds
		{
			get { return (int)_duration.TotalMilliseconds; }
		}
	}

}
